import request from '@/utils/request'

export const getDepartments = () => request.get('/company/department')

export const getManagerList = () => request.get('/sys/user/simple')

export const addDepartment = data => request.post('/company/department', data)

export const getDepartmentDetail = id => request.get(`/company/department/${id}`)

export const updateDepartment = data => request.put(`/company/department/${data.id}`, data)

export const delDepartment = id => request.delete(`/company/department/${id}`)
